function load_dispatcher(url)
{
    var selector = $("#sort_selector").val();
    var pFrom = $("#pFrom").val();
    var pTo = $("#pTo").val();

    var str=selector;
	
    if(selector == undefined){
        selector = -1;
    }
    if(pFrom!=""&&pFrom != undefined)
        str +="."+pFrom;
    if(pTo!=""&&pTo != undefined)
        str +="."+pTo;
	
    url = url + "/" + str;
    window.location = url;
}

function deleteItem(url)
{
	var answer = confirm("Are you sure to delete this item?");
	if(answer){
		window.location = url;
	}
}

